/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author Tjarco
 */
public class gui_naGame extends javax.swing.JFrame {
    private boolean buttonFilmpjePressed = false;
    private boolean buttonBeëindigPressed = false;
    private boolean buttonBackPressed = false;

// <editor-fold defaultstate="collapsed" desc=" getters en setters ">
    public boolean isButtonBackPressed() {
        return buttonBackPressed;
    }
    
    public void setButtonBackPressed(boolean buttonBackPressed) {
        this.buttonBackPressed = buttonBackPressed;
    }
    
    public void setButtonFilmpjePressed(boolean buttonFilmpjePressed) {
        this.buttonFilmpjePressed = buttonFilmpjePressed;
    }
    
    public void setButtonBeëindigPressed(boolean buttonGamePressed) {
        this.buttonBeëindigPressed = buttonGamePressed;
    }
    
    public boolean isButtonFilmpjePressed() {
        return buttonFilmpjePressed;
    }
    
    public boolean isButtonBeëindigPressed() {
        return buttonBeëindigPressed;
    }

// </editor-fold>

    /**
     * Creates new form gui_main
     */
    public gui_naGame() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonBeëindig = new javax.swing.JButton();
        buttonFilmpje = new javax.swing.JButton();
        jButton_back = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(1280, 720));
        setResizable(false);
        setUndecorated(true);
        getContentPane().setLayout(null);

        buttonBeëindig.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonBeëindig.setForeground(new java.awt.Color(51, 51, 255));
        buttonBeëindig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindig.png"))); // NOI18N
        buttonBeëindig.setBorderPainted(false);
        buttonBeëindig.setContentAreaFilled(false);
        buttonBeëindig.setFocusPainted(false);
        buttonBeëindig.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonBeëindigMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonBeëindigMouseExited(evt);
            }
        });
        buttonBeëindig.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonBeëindigActionPerformed(evt);
            }
        });
        getContentPane().add(buttonBeëindig);
        buttonBeëindig.setBounds(710, 190, 410, 280);

        buttonFilmpje.setFont(new java.awt.Font("Calibri", 0, 60)); // NOI18N
        buttonFilmpje.setForeground(new java.awt.Color(51, 51, 255));
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpje.png"))); // NOI18N
        buttonFilmpje.setBorderPainted(false);
        buttonFilmpje.setContentAreaFilled(false);
        buttonFilmpje.setFocusPainted(false);
        buttonFilmpje.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                buttonFilmpjeMouseExited(evt);
            }
        });
        buttonFilmpje.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonFilmpjeActionPerformed(evt);
            }
        });
        getContentPane().add(buttonFilmpje);
        buttonFilmpje.setBounds(150, 186, 410, 290);

        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button.png"))); // NOI18N
        jButton_back.setBorderPainted(false);
        jButton_back.setContentAreaFilled(false);
        jButton_back.setFocusPainted(false);
        jButton_back.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton_backMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jButton_backMouseExited(evt);
            }
        });
        jButton_back.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_backActionPerformed(evt);
            }
        });
        getContentPane().add(jButton_back);
        jButton_back.setBounds(270, 540, 180, 150);

        jLabel1.setFont(new java.awt.Font("Calibri", 0, 50)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 51, 204));
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Do you want to watch the film or end the MME?");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 1280, 120);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/GUI/background.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(0, -10, 1280, 730);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonBeëindigActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonBeëindigActionPerformed
            this.buttonBeëindigPressed = true;
   }//GEN-LAST:event_buttonBeëindigActionPerformed

    private void buttonFilmpjeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonFilmpjeActionPerformed
            this.buttonFilmpjePressed = true;
    }//GEN-LAST:event_buttonFilmpjeActionPerformed

    private void buttonFilmpjeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseEntered
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpjeGlow.png")));
    }//GEN-LAST:event_buttonFilmpjeMouseEntered

    private void buttonFilmpjeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseExited
        buttonFilmpje.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonFilmpje.png")));
    }//GEN-LAST:event_buttonFilmpjeMouseExited

    private void buttonBeëindigMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonBeëindigMouseEntered
        buttonBeëindig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindigGlow.png")));
    }//GEN-LAST:event_buttonBeëindigMouseEntered

    private void buttonBeëindigMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonBeëindigMouseExited
         buttonBeëindig.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/buttonBeeindig.png")));
    }//GEN-LAST:event_buttonBeëindigMouseExited

    private void buttonFilmpjeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_buttonFilmpjeMouseClicked
        this.buttonFilmpjePressed = true;
    }//GEN-LAST:event_buttonFilmpjeMouseClicked

    private void jButton_backMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseEntered
        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button_Glow.png")));;
    }//GEN-LAST:event_jButton_backMouseEntered

    private void jButton_backMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton_backMouseExited
        jButton_back.setIcon(new javax.swing.ImageIcon(getClass().getResource("/buttons/Back_Button.png")));;
    }//GEN-LAST:event_jButton_backMouseExited

    private void jButton_backActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_backActionPerformed
        buttonBackPressed = true;
    }//GEN-LAST:event_jButton_backActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(gui_naGame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(gui_naGame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(gui_naGame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(gui_naGame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

           public void run() {
                new gui_naGame().setVisible(true);
           }
        });
    }
    
        private void voledigScherm(){
        
        //Zet het scherm op voledig scherm;
        addWindowListener(new WindowAdapter() {
        public void windowOpened(WindowEvent e) {
        setExtendedState(MAXIMIZED_BOTH);
            }
         });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton buttonBeëindig;
    public javax.swing.JButton buttonFilmpje;
    private javax.swing.JButton jButton_back;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    // End of variables declaration//GEN-END:variables
}
